<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="fn" 	   uri="http://java.sun.com/jsp/jstl/functions" %>


<div id="joint_c1">
	<div id="listline_r"><div id="line_list">
		<span class="bx_tit"><img src="images/icon_6.gif" align="absmiddle" style="padding:0px 5px" />
			<c:out value="${selectedNewsCagetory}"> </c:out>
		</span>
	    </div>
    </div>

    <div id="listnws_c1">
        <div id="listnwsc1_r">
        <div id="listnwsc1_shad">
        <div id="listnwsc1_shad_r"><span class="news_tit1"><img src="images/icon_1.gif" align="left" style="padding:10px 10px" />Most Reads</span></div>
        <div id="listnwsc1_shad_r">
        <div id="nesnav">
        <ul>	
	        <li><a href="#">Jose Cantina WarrenSubway testenSubway </a></li>
        </ul>	
        </div>
        </div>

        <div id="listnwsc1_shad_r"><div align="right"><img src="images/icon_7.gif" align="absmiddle" /> <a href="#" class="more" >Click more</a></div></div>
        </div>
        </div>
        <div id="listnwsc1_dotr"><img src="images/icon_9.gif" align="left" style="padding:10px 10px" />
		        <a class="listname"  href="<c:url value="/news_type_home.html"><c:param name="id" value="${NewsCategory.KARNATAKA.id}"/></c:url>"><c:out value="${NewsCategory.KARNATAKA}"></c:out>  </a>
        </div>

        <div id="listnwsc1_dotr"><img src="images/icon_9.gif" align="left" style="padding:10px 10px" />
	        <a class="listname"  href="<c:url value="/news_type_home.html"><c:param name="id" value="${NewsCategory.GULF.id}"/></c:url>"><c:out value="${NewsCategory.GULF}"></c:out>  </a>
        </div>

        <div id="listnwsc1_dotr"><img src="images/icon_9.gif" align="left" style="padding:10px 10px" />
	        <a class="listname"  href="<c:url value="/news_type_home.html"><c:param name="id" value="${NewsCategory.INTERNATIONAL.id}"/></c:url>"><c:out value="${NewsCategory.INTERNATIONAL}"></c:out>  </a>
        </div>

        <div id="listnwsc1_dotr"><img src="images/icon_9.gif" align="left" style="padding:10px 10px" />
        <a class="listname"  href="<c:url value="/news_type_home.html"><c:param name="id" value="${NewsCategory.SPORTS.id}"/></c:url>"><c:out value="${NewsCategory.SPORTS}"></c:out>  </a>
        </div>


    </div>


    <div id="listnws_c2">
    <c:forEach var="news" items="${news}" varStatus="status">
			    <c:if test="${status.index < 10}">
    <div id="bx_r">
    <div id="nws_bx1"><img src="images/bx_1.gif"/></div>
    <div id="nws_bx2">
    <div id="nws_bx2_r"><div id="nws_bx2_bor"><a href="#" class="bxname"><c:out value="${news.headLine}"/></a></div>
    </div>
    <div class="content_txt" id="nws_bx2_r">

	    <c:choose>
					          <c:when test="${not empty news.headLine && fn:length(news.completeNews) > 200}">
					      	    <c:out value="${fn:substring(news.completeNews,0, 200)}" />
					          </c:when>
    					      
					          <c:otherwise>
					      	    <c:out value="${news.completeNews}" />
					          </c:otherwise>
    					      
	    </c:choose>
    </div>
    <div id="nws_bx2_r">

    <div align="right">
    <a class="bxmore" href="<c:url value="/newshome.html"><c:param name="id" value="${news.id}"/></c:url>">
									    &gt;&gt;Read More...
								    </a>
    </div>

    </div>
    </div>
    <div id="nws_bx3"><img src="images/bx_3.gif"/></div>
    </div>

    </c:if>
    </c:forEach>
    </div>

</div>